import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;


public class HomePage extends BasePage {

    @FindBy(xpath = "//a[text() = 'Chapter1']")
    private WebElement chapter1Link;

    public HomePage(WebDriver driver) {
        super(driver);
    }

    public Chapter1Page goToChapter1Page() {
        return new Chapter1Page(driver);
    }

    public void clickOnChapter1() {
        clickOn(chapter1Link);
    }
}
